package mspbots.cw.business.core.teams;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

/**
 * @author Jay.Yang
 */
public interface TeamsRepository extends R2dbcRepository<Teams, Long> {
    /**
     * find entity other id and tenant id
     *
     * @param teamId     teamId
     * @param tenantCode tenantCode
     * @return account entity
     */
    Mono<Teams> findByTeamIdAndTenantCode(Long teamId, Long tenantCode);

}
